from likeshop_api_project.base.myBase import Tools


class reg_model(Tools):
    path = '/api/account/register'

    def reg_action(self, mobile, pwd, client):
        mydata = {
            "mobile": mobile,
            "password": pwd,
            "client": client
        }
        print(self.hosturl + self.path)
        res = self.huihua.post(url=self.hosturl + self.path, data=mydata)
        return res.json()


import requests

# s = requests.session()
# reg = reg_model(huihua=s)
# msg = reg.reg_action(mobile='13212345699', pwd='qwer123', client='4')
# print(msg)
